﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Text;

using HtmlAgilityPack;
/// <summary>
/// Summary description for SJCPrice
/// </summary>
/// 
namespace SJCGoldenPrice
{
    public class GoldenPrice
    {
        
        #region "Member variable"
        protected Price _Hcm = new Price();
        protected Price _Ha_noi = new Price();
        protected Price _Da_nang = new Price();
        protected Price _Nha_trang = new Price();
        protected Price _Can_tho = new Price();

        protected string _LinkService;
 
        #endregion
       
        public Price Hcm
        {
            get { return _Hcm; }
            set { _Hcm = value; }
        }
        public Price Ha_noi
        {
            get { return _Ha_noi; }
            set { _Ha_noi = value; }
        }
        public Price Da_nang
        {
            get { return _Da_nang; }
            set { _Da_nang = value; }
        }
        public Price Nha_trang
        {
            get { return _Nha_trang; }
            set { _Nha_trang = value; }
        }
        public Price Can_tho
        {
            get { return _Can_tho; }
            set { _Can_tho = value; }
        }

        public string LinkService
        {
            get { return _LinkService; }
            set { _LinkService = value; }
        }
       
       
        
       

        public virtual void getPrice()
        { 
        
        }

        protected void setNewValue()
        {
            //if(GoldenPrice.UniqueInstance.flag==true)
            if ((this.Hcm.Ban != "") && (this.Hcm.Mua!=""))
            {
                GoldenPrice.UniqueInstance.Ha_noi = this.Ha_noi;
                GoldenPrice.UniqueInstance.Hcm = this.Hcm;
                GoldenPrice.UniqueInstance.Nha_trang = this.Nha_trang;
                GoldenPrice.UniqueInstance.Can_tho = this.Can_tho;
                GoldenPrice.UniqueInstance.Da_nang = this.Da_nang;
               
            }
        }

        #region Singleton
        static GoldenPrice instance = new GoldenPrice();

        // Public static property to get the object
        public static GoldenPrice UniqueInstance
        {
            get { return instance; }
        }
        #endregion Singleton
        
        
           
        }


       
}

